   <!-- 加入城市区域商圈选择 -->
   {template 'send/city_area_quan'}
   <!-- 加入城市区域商圈选择 -->
   
  <div class="form-group">
  
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'>*</span>小区名称：</label>
      <div class="col-sm-8 col-xs-12">
          <input type="text" name="data[village_name]" id="village_name" class="form-control"
                      autocomplete="off"    placeholder="请输入房源所属小区" value="{$item['village_name']}" />
                 <input id="h24" name="data[village_id]" type="hidden" value="{$item['village_id']}" class="txt" maxlength="20"/>
  
      </div>
  </div>


    
  <div class="form-group">
    <label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>类型：</label>
    <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
        <?php  echo
 form_element::select($selects['housetype'],'data[house_type]','house_type',$item['house_type']);
 ?>
        <span class="input-group-addon">房</span>
            </div>
    </div>
       
    <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
        <select name="data[build_age]">
                        <option value="">-建筑年代-</option>
                        <?php for( $i = (integer)date("Y"); $i > 1988 ;$i--){ ?>
                <option <?=($item['build_age']==$i ?'selected':'')?> value=<?=$i?>><?=$i?></option>
                        <?php } ?></select>          
          <span class="input-group-addon">年</span>  
            </div>
    </div>
    <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
 <?php  echo
 form_element::select($selects['zhaungxiu'],'data[traveaux_finition]','traveaux_finition',$item['traveaux_finition']);
 ?>          
          <span class="input-group-addon">装修</span>  
            </div>
    </div>
</div>
  
  
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'>*</span>面 积：</label>
      <div class="col-sm-3 col-xs-3">
              <div class="input-group form-group">
          <input type="text" name="data[superficie]" id="superficie" autocomplete="off" class="form-control"
                          placeholder="请输入数字， 单位 ㎡ "  value="{$item['superficie']}" />           
            <span class="input-group-addon">㎡</span> 
              </div>
      </div>
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
        <span style='color:red'></span>套内面积：</label>
        <div class="col-sm-3 col-xs-3">
                <div class="input-group form-group">
            <input type="text" name="data[dong]" id="dong" autocomplete="off" class="form-control"
                            placeholder="请输入数字， 单位 ㎡ "  value="{$item['dong']}" />           
              <span class="input-group-addon">㎡</span> 
                </div>
        </div>              
  </div>
  
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'>*</span>售 价：</label>
      <div class="col-sm-3 col-xs-3">
              <div class="input-group form-group">
          <input type="text" name="data[loyer]" id="loyer" autocomplete="off" class="form-control"
                          placeholder="请输入数字，0表面议"  value="{$item['loyer']}" /> 
                  <span class="input-group-addon">万元</span> 
       <input type="hidden" name="data[prix_unitaire]" id="prix_unitaire" value="万"/> 	
              </div>
      </div>   
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
                <span style='color:red'></span>税费：</label>
        <div class="col-sm-3 col-xs-3">
                <div class="input-group form-group">
            <input type="text" name="data[danyuan]" id="danyuan" autocomplete="off" class="form-control"
                            placeholder="请输入数字，0表面议"  value="{$item['danyuan']}" /> 
                    <span class="input-group-addon">%</span> 
         	
                </div>
        </div>      
  </div>
  
  
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>楼 层：</label>
      <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
          <input type="text" name="data[storey]" id="storey" class="form-control" autocomplete="off" 
                          placeholder="第几层"  value="{$item['storey']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
            <span class="input-group-addon">层</span> 
              </div>
      </div>
          <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
          <input type="text" name="data[total_storey]" id="total_storey" class="form-control" autocomplete="off" 
                          placeholder="共几层"  value="{$item['total_storey']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
            <span class="input-group-addon">共几层</span>  
              </div>
        </div>
      <div class="col-sm-1 col-xs-1">
        <div class="input-group form-group">
    <?php  echo
form_element::select($selects['chaoxiang'],'data[donner_sur]','donner_sur',$item['donner_sur']);
?>	  	<span class="input-group-addon">朝向</span> 
        </div>
    </div>
  </div>
  
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'>*</span>户 型：</label>
      <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
          <input type="text" name="data[room]" id="room" class="form-control" autocomplete="off" 
                          placeholder="房"  value="{$item['room']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
            <span class="input-group-addon">房</span> 
              </div>
      </div>
          <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
          <input type="text" name="data[hall]" id="hall" class="form-control" autocomplete="off" 
                          placeholder="厅"  value="{$item['hall']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
            <span class="input-group-addon">厅</span> 
              </div>
            </div>
          <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
                <input type="text" name="data[garder]" id="garder" class="form-control" autocomplete="off" 
                          placeholder="卫"  value="{$item['garder']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
                <span class="input-group-addon">卫</span>  
              </div>
            </div>
  </div>

  <div class="form-group">
    <label class="col-xs-12 col-sm-3 col-md-2 control-label">
        <span style='color:red'>*</span> 房源特色：</label>
    <div class="col-sm-8 col-xs-12">
      <div class="tese">
    <?php

    echo form_element::checkbox($selects['disposition'],'disposition','disposition',$item['disposition']);
    ?>
        </div>
    </div>
   </div>

    
  
  <div class="form-group">
    <label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'>*</span>标 题：</label>
    <div class="col-sm-9 col-xs-12">
        <input type="text" name="data[title]" id="title" class="form-control"
                        placeholder="必填项（很重要！一个好的推荐广告，可以大大提升房源点击量！）"  value="{$item['title']}" />
      <p>
        <a style="color:red" href="javascript:;"
        onclick="maketitle()">点击这里自动生成标题</a>
      </p>          
    </div>
</div>
  

<div class="form-group">
    <label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>房源编号：</label>
    <div class="col-sm-6 col-xs-6">
        <input type="text" name="data[house_sno]" id="house_sno" class="form-control" autocomplete="off" 
                        placeholder="请输入公司房源编号"  value="{$item['house_sno']}" />
    </div>
</div>

<div class="form-group">
    <label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>首付描述：</label>

    <div class="col-sm-4 col-xs-8">
            
        <input type="text" name="data[firstpay]" id="firstpay" class="form-control"
                        placeholder="描述房源首付贷款情况"  value="{$item['firstpay']}" /> 
      <p>不填写“首付描述”则首付计算按比例显示</p>      
    </div>
     <label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>首付比例：</label>
    <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
        <input type="text" name="data[qq]" id="qq" class="form-control"
                        placeholder="默认40"  value="{$item['qq']}" /> 
                <span class="input-group-addon">%</span> 
          
            </div>
         
    </div>
     
</div>

  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">有效期至：</label>
      <div class="col-sm-4 col-xs-6">
          {php echo tpl_form_field_date('endtime', !empty($item['endtime']) ? date('Y-m-d H:i',$item['endtime']) : date('Y-m-d H:i'), 1)}
  
      </div>
  </div>
  
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>经纪人：</label>
      <div class="col-sm-4 col-xs-6">
              <div class="input-group form-group">
            <?php  echo
   form_element::select($brokers,'data[broker_id]','broker_id',$item['broker_id']);
   ?>        
             
              </div>
              <p>添加经纪人后联系人信息不用填写。</p>
      </div>         
  </div>
  
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>联系信息：</label>
      <div class="col-sm-4 col-xs-6">
              <div class="input-group form-group">
          <input type="text" name="data[publish_name]" id="publish_name" class="form-control"
                          placeholder="联系人"  value="{$item['publish_name']}" />           
            <span class="input-group-addon">名称</span> 
              </div>
      </div>
        <div class="col-sm-4 col-xs-6">
              <div class="input-group form-group">
          <input type="text" name="data[linkphone]" id="linkphone" class="form-control"
                          placeholder="手机号"  value="{$item['linkphone']}"/>           
            <span class="input-group-addon">手机号</span>  
              </div>
        </div>
  </div>
  
  <div class="form-group">
  
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">形象图：</label>
  
      <div class="col-sm-9 col-xs-12">
  
          {php echo tpl_form_field_image('thumb', $item['thumb'], '', array('extras' => array('text' => 'readonly')))}
  
      </div>
  
  </div>
  
  <div class="form-group">  
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">房源图片：</label>
    <div class="col-sm-9 col-xs-12">
      {php echo tpl_form_field_multi_image('thumbs',$item['piclist'])}
    </div>  
  </div>

  <div class="form-group">  
    <label class="col-xs-12 col-sm-3 col-md-2 control-label">户型图：</label>
  <div class="col-sm-9 col-xs-12">
    {php echo tpl_form_field_multi_image('thumbstruct',$item['thumb_struct'])}
  </div>  
</div>